/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.behavioral.iterator;

import java.util.List;

/**
 *
 * @author jmg
 */
public class Util {
    
    public void iterar(Object[] objects){
        for (int i = 0; i < objects.length; i++) {
            Object object = objects[i];
            System.out.println(object);
        }
    }
    
    public void iterar(List objects){
        for (int i = 0; i < objects.size(); i++) {
            Object object = objects.get(i);
            System.out.println(object);
        }
    }
    
    
}
